package com.ruoyi.asms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.asms.domain.AsmsMaintenanceChargeInfo;
import com.ruoyi.asms.mapper.AsmsMaintenanceChargeInfoMapper;
import com.ruoyi.asms.service.IAsmsMaintenanceChargeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 维护方用户负责信息Service业务层处理
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Service
public class AsmsMaintenanceChargeInfoServiceImpl extends ServiceImpl<AsmsMaintenanceChargeInfoMapper, AsmsMaintenanceChargeInfo>  implements IAsmsMaintenanceChargeInfoService
{
    @Autowired
    private AsmsMaintenanceChargeInfoMapper asmsMaintenanceChargeInfoMapper;

    /**
     * 查询维护方用户负责信息
     * 
     * @param maintenanceChargeInfoId 维护方用户负责信息主键
     * @return 维护方用户负责信息
     */
    @Override
    public AsmsMaintenanceChargeInfo selectAsmsMaintenanceChargeInfoByMaintenanceChargeInfoId(Long maintenanceChargeInfoId)
    {
        return asmsMaintenanceChargeInfoMapper.selectAsmsMaintenanceChargeInfoByMaintenanceChargeInfoId(maintenanceChargeInfoId);
    }

    /**
     * 查询维护方用户负责信息列表
     * 
     * @param asmsMaintenanceChargeInfo 维护方用户负责信息
     * @return 维护方用户负责信息
     */
    @Override
    public List<AsmsMaintenanceChargeInfo> selectAsmsMaintenanceChargeInfoList(AsmsMaintenanceChargeInfo asmsMaintenanceChargeInfo)
    {
        return asmsMaintenanceChargeInfoMapper.selectAsmsMaintenanceChargeInfoList(asmsMaintenanceChargeInfo);
    }

    /**
     * 新增维护方用户负责信息
     * 
     * @param asmsMaintenanceChargeInfo 维护方用户负责信息
     * @return 结果
     */
    @Override
    public int insertAsmsMaintenanceChargeInfo(AsmsMaintenanceChargeInfo asmsMaintenanceChargeInfo)
    {
        return asmsMaintenanceChargeInfoMapper.insertAsmsMaintenanceChargeInfo(asmsMaintenanceChargeInfo);
    }

    /**
     * 修改维护方用户负责信息
     * 
     * @param asmsMaintenanceChargeInfo 维护方用户负责信息
     * @return 结果
     */
    @Override
    public int updateAsmsMaintenanceChargeInfo(AsmsMaintenanceChargeInfo asmsMaintenanceChargeInfo)
    {
        return asmsMaintenanceChargeInfoMapper.updateAsmsMaintenanceChargeInfo(asmsMaintenanceChargeInfo);
    }

    /**
     * 批量删除维护方用户负责信息
     * 
     * @param maintenanceChargeInfoIds 需要删除的维护方用户负责信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsMaintenanceChargeInfoByMaintenanceChargeInfoIds(Long[] maintenanceChargeInfoIds)
    {
        return asmsMaintenanceChargeInfoMapper.deleteAsmsMaintenanceChargeInfoByMaintenanceChargeInfoIds(maintenanceChargeInfoIds);
    }

    /**
     * 删除维护方用户负责信息信息
     * 
     * @param maintenanceChargeInfoId 维护方用户负责信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsMaintenanceChargeInfoByMaintenanceChargeInfoId(Long maintenanceChargeInfoId)
    {
        return asmsMaintenanceChargeInfoMapper.deleteAsmsMaintenanceChargeInfoByMaintenanceChargeInfoId(maintenanceChargeInfoId);
    }
}
